package com.handu.luna.boss.controller;

import org.springframework.data.domain.Pageable;
import org.springframework.data.web.PageableDefault;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/system/worklog/*")
public class WorkLogController extends BaseController {
	
	@RequestMapping(value = {"index","/",""})
    public BossModel index(@PageableDefault(page = 0,size = DEFAULT_PAGE_SIZE) Pageable pageable){		
		return createModel()
				.add("workLogs",context.getWorkLogRepository().findAll(pageable));		
	}
}
